阅读:5863 回复:8
实名用户_67af3ddc
9

帖子

28

跟帖

565

积分

高级榴莲
高级榴莲

在H3 BPM打印模板里面显示打印预览异常,通过HTML显示打印显示正常

楼主#
更多 发布于:2016-12-06 10:01
以下两张是通过html显示打印效果

图片:]{G(1]P]]@B{GHJB3C3KNGR.png

图片:C2_12AF9OMJCKCPR{IGWUC9.png




之后把此模板放到h3后台打印模板中,打印的效果如下:

图片:GPK7S65%KU(2OA2D)1{3[IY.png

图片:1AXE5$8R697U~I@SC~(PBCX.png

图片:8Y@_UPB0QB`{W{}CS1EY@@3.png





存在问题,1、为什么通过打印模板显示和html打印效果差异较大?
2、最后的空白页怎么去除。



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>凉都高端人才信息表</title>
    <script src="../../WFRes/_Scripts/jquery/jquery.js"></script>
 <style >
        @media print {
            table {
                page-break-after:always
            }
        }
 
    </style>
    <!--
    <style type="text/css">
    
        body{height:1123px; width:794px; overflow:hidden; margin:0px; padding:0px;}
 .box {height:100%; position:absolute; width:100%;}
    </style>
    -->


</head>


<body>
    <div   class="main" >
        

        

      
        <div style="width:100%;text-align:center;height:43px;"><label style="font-size:30px;font-weight:50;">凉都高端人才信息表</label>
        </div>
        <table class="context_table" border="0"  cellpadding="0" cellspacing="0" style="width:90%;margin-left:30px; table-layout:fixed" >
            <tbody>
                
                <tr style=" border:1px solid #000; font-size:auto;height:52px" >
                    <td colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center;width:120px; word-wrap:break-word " >姓  名</td>
                    <td  colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center;width:80px; word-wrap:break-word " ><label id="zjxm">{xingming}</label></td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center;width:100px; word-wrap:break-word " >性  别</td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center;width:70px; word-wrap:break-word  " ><label id="zjyt">{xingbie}</label></td>
                    <td  colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center;width:100px; word-wrap:break-word  " >出生年月</td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center;width:100px; word-wrap:break-word  " ><label id="Label1">{csny}</label></td>
                    <td  rowspan="4" style=" border:1px solid #000; font-size:auto; text-align:center;width:150px; word-wrap:break-word" >{zhaopian}</td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:52px"  >
                    <td colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >民  族</td>
                    <td colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label2">{minzu}</label></td>
                    <td colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >籍  贯</td>
                    <td colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label3">{jiguan}</label></td>
                    <td colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >外语水平</td>
                    <td colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label4">{wysp}</label></td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:52px" >
                    <td  colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >入  党</br>时  间</td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word"  ><label id="Label5">{rdsj}</label></td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >参见工作</br>时间</td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label6">{cjgzsj}</label></td>
                    <td  colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >计算机水平</td>
                    <td  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label7">{jsjsp}</label></td>
                
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:52px" >
                    <td   colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >人才类别</td>
                    <td   colspan="5" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label8">{rencaileibie}</label></td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:52px" >
                    <td  colspan="1"  style=" border:1px solid #000; font-size:auto; text-align:center; word-wrap:break-word">专业技术</br>资格</td>
                    <td   colspan="3"  style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label9">{zyjszg}</label></td>
                    <td class="tdTitle"  style=" border:1px solid #000; text-align:center;font-size:auto; word-wrap:break-word ">从事领域</br>类别</td>
                    <td   colspan="2" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word"  ><label id="Label10">{cslylb}</label></td>
                </tr>
                    <tr style=" border:1px solid #000; font-size:auto;height:61px" ><td  rowspan="2" style=" border:1px solid #000; font-size:auto;text-align:center;">学  历</br>学  位</td>
                    <td colspan="1" style="text-align:center;border:1px solid #000; font-size:auto; word-wrap:break-word">全日制</br>教  育</td>
                    <td  colspan="2"  style="text-align:center;font-size:auto; word-wrap:break-word "><label id="Label11">{jsjsp}</label></td>
                    <td colspan="1" style="text-align:center;border:1px solid #000; font-size:auto; word-wrap:break-word">毕业院校</br>及专业</td>
                    <td  colspan="2" style="text-align:center;font-size:auto;  border:1px solid #000;  word-wrap:break-word"  ><label id="Label12">{jsjsp}</label></td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:61px" >
                    <td colspan="1" style="text-align:center;font-size:auto; word-wrap:break-word ">在  职</br>教  育</td>
                    <td  colspan="2"  style="text-align:center;font-size:auto;  border:1px solid #000; word-wrap:break-word" ><label id="Label13">{jsjsp}</label></td>
                    <td colspan="1" style="text-align:center;font-size:auto;  word-wrap:break-word">毕业院校</br>及专业</td>
                    <td  colspan="2" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" ><label id="Label14">{jsjsp}</label></td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:61px" >
                    <td   colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word"  >现在工作</br>单位及职务</td>
                    <td   colspan="6"  style=" border:1px solid #000;font-size:auto; word-wrap:break-word " ><label id="Label15">{xgzdwjzw}</label></td>
                </tr>
                <tr style=" border:1px solid #000; font-size:auto;height:61px" >
                    <td   colspan="1"  style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >擅长专业</br>领域</td>
                    <td   colspan="6" style=" border:1px solid #000;font-size:auto; word-wrap:break-word "  ><label id="Label16">{sczyly}</label></td>
                </tr>
                
                <tr style=" border:1px solid #000; font-size:auto; height:420px" >
                    <td  rowspan="1"  colspan="1" style=" border:1px solid #000; font-size:auto;text-align:center; word-wrap:break-word" >简</br></br>历</td>
                    <td  rowspan="1"  colspan="6" style=" border:1px solid #000;font-size:auto; word-wrap:break-word " >
                        <table border="0" style="width:100%; table-layout:fixed" cellspacing="0" >
                            <Row>
                                <tr>
                                    <th  colspan="1" style=";height:2%;font-size:auto;word-wrap:break-word" >起:{GongZuoJianLi.KaiShi}
                                    止:{GongZuoJianLi.JieShuShiJian}</th>
                                    <th  colspan="1" style=";height:2%;font-size:auto; word-wrap:break-word " >{GongZuoJianLi.GongZuoXueXi}</th>
                                </tr>
                            </Row>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        
        

        

       <table class="context_table1" border="0"  cellpadding="0" cellspacing="0" style="width:90%;margin-left:30px; table-layout:fixed" >
 <tbody>
                <tr style=" border:1px solid #000;font-size:auto; height:90px" >
                    <td  rowspan="1"  colspan="1" style="width:120px; border:1px solid #000;font-size:auto;text-align:center;" >
                     奖惩</br>情况
                    </td>
                    <td  rowspan="1"  colspan="1" style="width:600px; border:1px solid #000;font-size:auto;" >
                        <table border="0" style="width:100%; table-layout:fixed" cellspacing="0" >
                            <Row>
                                <tr>
                                    <th  colspan="1" style=";height:30px;font-size:auto; width:40%; word-wrap:break-word" >起:{GongZuoJianLi.KaiShi}
                                    止:{GongZuoJianLi.JieShuShiJian}</th>
                                    <th  colspan="1" style=";height:30px;font-size:auto; width:60%; word-wrap:break-word" >{GongZuoJianLi.GongZuoXueXi}</th>
                                </tr>
                            </Row>
                        </table>
                    </td>
                </tr>
                <tr style=" border:1px solid #000;font-size:auto; height:90px" >
                    <td  rowspan="1"  colspan="1" style="width:120px;  border:1px solid #000;font-size:auto;text-align:center;" >年度</br>考核</br>结果</td>
                    <td  rowspan="1"  colspan="1" style="width:600px;  border:1px solid #000;font-size:auto;" >
                        <table border="0" style="width:100%; text-align:center;" cellspacing="0" >
                            <Row>
                                 <tr>
                                    <th  colspan="1" style=";height:30px;font-size:auto; width:40%; word-wrap:break-word">{KaoHeQingKuang.NianFen}</th>
                                    <th  colspan="1" style=";height:30px;font-size:auto; width:60%; word-wrap:break-word">{KaoHeQingKuang.KaoHeDengCi}</th>
                                </tr>
                            </Row>
                        </table>
                    </td>
                </tr>
                <tr style="height:80px">
                    <td   colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;" >科研</br>奖励</br>情况</td>
                    <td   colspan="1" style=" border:1px solid #000;font-size:auto;; word-wrap:break-word" ><label id="Label43">{kyjlqk}</label></td>
                </tr>
                <tr style=" border:1px solid #000;font-size:auto; height:80px">
                    <td   colspan="1"  style=" border:1px solid #000;font-size:auto;height:50px;text-align:center;">学术交流</br>情况成果</td>
                    <td   colspan="1" style=" border:1px solid #000;font-size:auto;; word-wrap:break-word" ><label id="Label44">{xsjljcg}</label></td>
                </tr>
                <tr style="height:80px">
                    <td   colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;" >知识</br>产权</br>情况</td>
                    <td   colspan="1" style=" border:1px solid #000;font-size:auto;; word-wrap:break-word" ><label id="Label45">{zscqqk}</label></td>
                </tr>
                
                <tr style=" border:1px solid #000;font-size:auto; height:300px">
                    <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;">家庭主要</br>成员信息</td>
                    
                    <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;" >
                        <table border="0" style="width:100%; text-align:center; table-layout:fixed" cellspacing="0" >
                            <tr >


                                    <td   style="height:30px; font-size:auto; width:15%; word-wrap:break-word"><label id="Label17">称谓</label></td>
                                    <td   style="height:30px; font-size:auto; width:15%; word-wrap:break-word"><label id="Label18">姓名</label></td>
                                    <td   style="height:30px; font-size:auto; width:15%; word-wrap:break-word"><label id="Label19">出生年月</label></td>
                                    <td   style="height:30px; font-size:auto; width:15%; word-wrap:break-word"><label id="Label20">政治面貌</label></td>
                                    <th   style="height:30px; font-size:auto; width:40%; word-wrap:break-word"><label id="Label21">工作单位及职务</label></th>
                            </tr>
                            <Row>
                                <tr>
                                    <td  colspan="1" style="height:30px;font-size:auto;; word-wrap:break-word"><label id="Label46">{jtcyxx.chengwei}</label></td>
                                    <td  colspan="1" style="height:30px;font-size:auto;; word-wrap:break-word"><label id="Label47">{jtcyxx.xingming}</label></td>
                                    <td  colspan="1" style="height:30px;font-size:auto;; word-wrap:break-word"><label id="Label48">{jtcyxx.csny}</label></td>
                                    <td  colspan="1" style="height:30px;font-size:auto;; word-wrap:break-word"><label id="Label49">{jtcyxx.zzmm}</label></td>
                                    <th  colspan="3" style="height:30px;font-size:auto;; word-wrap:break-word"><label id="Label50">{jtcyxx.gzdwjzw}</label></th>
                                </tr>
                            </Row>
                        </table>
                    </td>
                
                </tr>
                
                <tr style=" border:1px solid #000;font-size:auto; height:90px">
                    <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;">社会</br>兼职</br>情况</td>
                    
                    <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;" >
                        <table border="0" style="width:100%; text-align:center; table-layout:fixed" cellspacing="0" >
                            <Row>
                                 <tr >
                                    <td  colspan="1" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{shjzqk.jzkssj}</td>
                                    <td  colspan="1" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">至{shjzqk.jzjssj}:</td>
                                    <td  colspan="1" style="height:30px;font-size:auto; width:15%; word-wrap:break-word">{shjzqk.jzdw}</td>
                                    <td  colspan="1" style="height:30px;font-size:auto; width:15%; word-wrap:break-word">{shjzqk.jzzw}</td>
                                    <td  colspan="1" style="height:30px;font-size:auto; width:30%; word-wrap:break-word">{shjzqk.jzbz}</td>
                                </tr>
                            </Row>
                        </table>
                    </td>
                
                </tr>
                
                    <tr style=" border:1px solid #000;font-size:auto; height:90px">
                        <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;">培训</br>进修</br>情况</td>
                        
                        <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;" >
                            <table border="0" style="width:100%; text-align:center; table-layout:fixed" cellspacing="0" >
                                <Row>
                                      <tr>
                                        <td  colspan="1" style="height:30px;font-size:auto; width:40%; word-wrap:break-word">起:{PeiXunJinXiu.QiShiShiJian}止:{PeiXunJinXiu.ZhongZhiShiJian}</td>
                                        
                                        <td  colspan="1" style="height:30px;font-size:auto; width:10%; word-wrap:break-word">{PeiXunJinXiu.PeiXunTianShu}</td>
                                        <td  colspan="1" style="height:30px;font-size:auto; width:10%; word-wrap:break-word">{PeiXunJinXiu.PeiXunNeiRong}</td>
                                        <td colspan="1"  style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{PeiXunJinXiu.ZhuBanDanWei}</td>
                                        <td  colspan="1"  style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{PeiXunJinXiu.PeiXunJiGou}</td>
                                    </tr>
                                </Row>
                            </table>
                        </td>
                    
                    </tr>
                    <tr style=" border:1px solid #000;font-size:auto; height:90px">
                        <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;text-align:center;">挂职</br>锻炼</br>情况</td>
                        
                        <td  rowspan="1"  colspan="1" style=" border:1px solid #000;font-size:auto;" >
                            <table border="0" style="width:100%; text-align:center; table-layout:fixed" cellspacing="0" >
                                <Row>
                                    <tr>
                                        <td style="height:30px;font-size:auto; width:20%; word-wrap:break-word"  colspan="1">{gzdlqk.gzkssj}</td>
                                        <td  colspan="1" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">至{gzdlqk.gzjssj}:</td>
                                        <td  colspan="2" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{gzdlqk.gzdw}</td>
                                        <td colspan="1" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{gzdlqk.gzzw}</td>
                                        <td  colspan="2" style="height:30px;font-size:auto; width:20%; word-wrap:break-word">{gzdlqk.gzbz}</td>
                                    </tr>
                                </Row>
                            </table>
                        </td>
                    </tr>
                </tr>
            </tbody>
        </table>
 
    </div>
</body>

最新喜欢:

实名用户_80996d34实名用户_8...
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
1楼#
发布于:2016-12-06 17:02
帖内置顶  –    –  2016-12-12 10:40
1、问题1是因为在系统打印模式下存在样式冲突
2、问题2去掉全局的分页样式,在需要分页的table里再加上此样式
limingwl
4

帖子

44

跟帖

764

积分

中级榴莲
中级榴莲
2楼#
发布于:2016-12-06 10:15
把流程包和自定义表单源码都打包上传一下,我看我本机是什么效果
实名用户_67af3ddc
9

帖子

28

跟帖

565

积分

高级榴莲
高级榴莲
3楼#
发布于:2016-12-06 10:22
附件为流程包,打印源码在默认表单里面001.xml
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
4楼#
发布于:2016-12-06 17:02
1、问题1是因为在系统打印模式下存在样式冲突
2、问题2去掉全局的分页样式,在需要分页的table里再加上此样式
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
5楼#
发布于:2016-12-06 17:03
另外全局打印样式可以直接写在Sheetprint.aspx文件里
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
6楼#
发布于:2016-12-06 17:06
打印效果附件
附件名称/大小 下载次数 最后更新
凉都高端人才信息采集表.pdf (103KB)  22 2016-12-06 17:06
实名用户_67af3ddc
9

帖子

28

跟帖

565

积分

高级榴莲
高级榴莲
7楼#
发布于:2016-12-06 18:00
武汉技术支持团队:另外全局打印样式可以直接写在Sheetprint.aspx文件里回到原帖
从附件来看,没解决我问的问题,和HTML打印出来效果不一样,这个明显A4纸只占了部分
实名用户_67af3ddc
9

帖子

28

跟帖

565

积分

高级榴莲
高级榴莲
8楼#
发布于:2016-12-07 11:19
实名用户_67af3ddc:从附件来看,没解决我问的问题,和HTML打印出来效果不一样,这个明显A4纸只占了部分回到原帖
请贴Sheetprint.aspx代码出来看看,谢谢
实名用户_67af3ddc
9

帖子

28

跟帖

565

积分

高级榴莲
高级榴莲
9楼#
发布于:2016-12-07 15:21
实名用户_67af3ddc:从附件来看,没解决我问的问题,和HTML打印出来效果不一样,这个明显A4纸只占了部分回到原帖
请贴Sheetprint.aspx代码出来看看
游客

返回顶部